#include "Menu.h"
#include "Config.h"

Menu::Menu()
{
	size = CCDirector::sharedDirector()->getWinSize();
}

Menu::~Menu()
{

}

void Menu::playAgainFunc()
{

}

void Menu::fCreateMenuReply(CCLayer* parent)
{
	CCMenuItemImage* playAgainItem = CCMenuItemImage::create(kImageButtonNormal, kImageButtonSelected, parent, menu_selector(Menu::playAgainFunc));

	CCMenu* playAgain = CCMenu::create( playAgainItem, NULL );

	playAgain->alignItemsVertically();

	parent->addChild(playAgain);
}

void Menu::fAddMenuIntoMap(CCLayer* map, CCMenu* menu)
{
	map->addChild(menu);
}

void Menu::fAddMenuIntoMap(CCLayer* map, CCMenu* menu, int zOrder)
{

	map->addChild(menu, zOrder);
}

void Menu::fAddMenuIntoMap(CCLayer* map, CCMenu* menu, int zOrder, int tag)
{

	map->addChild(menu, zOrder, tag);
}

void Menu::fAddMenuItem(CCMenu* menuParent, CCArray* arrMenuItems)
{
	menuParent->createWithArray(arrMenuItems);
}

float Menu::fGetBestScore(char* pathFile)
{
	float bestScore = 0;

	return bestScore;
}